package org.dairy.farms.model;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.PrimaryKeyJoinColumn;

/**
 * Created by IntelliJ IDEA.
 * User: GDuggira
 * Date: 27 Jun, 2012
 * Time: 7:08:00 PM
 */
@Entity
@PrimaryKeyJoinColumn(name="ID")
public class RevenueNotes extends Notes{
    @ManyToOne(optional = false)
    private Revenue revenue;

    public Revenue getRevenue() {
        return revenue;
    }

    public void setRevenue(Revenue revenue) {
        this.revenue = revenue;
    }
}
